import config from '../../../src/config'

function getAttri () {
  $.get(config.serverURI + '/demo/order/aggregation', '', function (res) {
    console.log( res.aggregations[2].buckets );
    var data = [];

    res.aggregations[2].buckets.forEach(function (item, key) {
        data.push({'name': item.key, 'value': item.doc_count})
    });



  },'json');
}

export { //很关键
  getAttri
}
